﻿using System.Collections.Generic;
namespace DarrenSoft.Domain.Extends
{
    public class JsonPager:PagerBase
    {
        public List<QueryFilter> Filter { get; set; }
        public int FirstResult { get { return ((this.PageIndex - 1) >= 0 ? (this.PageIndex - 1) : 0) * this.PageSize; } }
        public bool OrderDirection { get { return (this.OrderBy.ToUpper().Trim() == "ASC") ? true : false; } }
    }
}
